package com.zhouyu;

import com.zhouyu.service.UserService;
import org.springframework.boot.context.TypeExcludeFilter;
import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * @author leimingchao
 * create 2025-06-05 21:11
 */
//@Component
public class ZhouyuTypeExcludeFilter extends TypeExcludeFilter {

	@Override
	public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException {
		return UserService.class.getName().equals(metadataReader.getAnnotationMetadata().getClassName());
	}
}
